
 /**
 * UserInfoManagerImpl.java.java.
 * User: BrianChen Date: 2012-6-5 下午05:23:59
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.security.service.impl;

import com.collapsar.core.security.dao.IUserInfoDao;
import com.collapsar.core.security.model.UserInfo;
import com.collapsar.core.security.service.IUserInfoManager;
import com.collapsar.core.service.BaseUserAwareManager;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-6-5 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-6-5 下午05:23:59
 * @version 1.0
 * @see
 * 
 */
public class UserInfoManagerImpl extends BaseUserAwareManager implements IUserInfoManager{
	private IUserInfoDao userInfoDao = null;
	
	@Override
	public void storeUserInfo(UserInfo userInfo) {
		this.userInfoDao.storeUserInfo(userInfo);
	}

	@Override
	public void deleteUserInfo(UserInfo userInfo) {
		this.userInfoDao.deleteUserInfo(userInfo); 
	}

	@Override
	public void deleteAllUserInfo(Long[] userInfoIds) {
		this.userInfoDao.deleteAllUserInfo(userInfoIds);
	}

	@Override
	public UserInfo loadUserInfo(Long userInfoId) {
		return this.userInfoDao.loadUserInfo(userInfoId);
	}

	@Override
	public UserInfo getUserInfoByUserAccount(String userAccount) {
		return this.userInfoDao.getUserInfoByUserAccount(userAccount);
	}

	public IUserInfoDao getUserInfoDao() {
		return userInfoDao;
	}

	public void setUserInfoDao(IUserInfoDao userInfoDao) {
		this.userInfoDao = userInfoDao;
	}	

}

